package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.CmsProductSpec;
import com.project.pojo.model.UpdateProductSpecModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CmsProductSpecMapper extends BaseMapper<CmsProductSpec> {

    /**
     * 添加商品规格
     * @param productSpecs
     * @param productId
     * @return
     */
    int insertProductSpec(@Param("productSpecs") List<UpdateProductSpecModel> productSpecs, @Param("productId") Long productId);

}